#! /bin/bash
TEST_HOME=`pwd`
export TEST_HOME
echo TEST_HOME=$TEST_HOME

bCLASSPATH=$TEST_HOME/binaryHandle/isBinaryfileUI.jar
export bCLASSPATH
bCLASSPATH=$bCLASSPATH:$TEST_HOME/binaryHandle/isBinaryfile.jar
export bCLASSPATH
bCLASSPATH=$bCLASSPATH:$TEST_HOME/binaryHandle/axis.jar
export bCLASSPATH
bCLASSPATH=$bCLASSPATH:$TEST_HOME/binaryHandle/commons-discovery.jar
export bCLASSPATH
bCLASSPATH=$bCLASSPATH:$TEST_HOME/binaryHandle/commons-logging-1.0.4.jar
export bCLASSPATH
bCLASSPATH=$bCLASSPATH:$TEST_HOME/binaryHandle/dom4j-1.4-dev-8.jar
export bCLASSPATH
bCLASSPATH=$bCLASSPATH:$TEST_HOME/binaryHandle/jaxrpc.jar
export bCLASSPATH
bCLASSPATH=$bCLASSPATH:$TEST_HOME/binaryHandle/jdom-1.0.jar
export bCLASSPATH
bCLASSPATH=$bCLASSPATH:$TEST_HOME/binaryHandle/log4j-1.2.15.jar
export bCLASSPATH
bCLASSPATH=$bCLASSPATH:$TEST_HOME/binaryHandle/ojdbc14.jar
export bCLASSPATH
bCLASSPATH=$bCLASSPATH:$TEST_HOME/binaryHandle/stax-api-1.0.1.jar
export bCLASSPATH
bCLASSPATH=$bCLASSPATH:$TEST_HOME/binaryHandle/wsdl4j-1.6.1.jar
export bCLASSPATH
bCLASSPATH=$bCLASSPATH:$TEST_HOME/binaryHandle/xmlbeans-2.3.0.jar
export bCLASSPATH
bCLASSPATH=$bCLASSPATH:$TEST_HOME/binaryHandle/poi3.8/poi-3.8-20120326.jar
export bCLASSPATH
bCLASSPATH=$bCLASSPATH:$TEST_HOME/binaryHandle/poi3.8/poi-excelant-3.8-20120326.jar
export bCLASSPATH
bCLASSPATH=$bCLASSPATH:$TEST_HOME/binaryHandle/poi3.8/poi-ooxml-3.8-20120326.jar
export bCLASSPATH
bCLASSPATH=$bCLASSPATH:$TEST_HOME/binaryHandle/poi3.8/poi-ooxml-schemas-3.8-20120326.jar
export bCLASSPATH
bCLASSPATH=$bCLASSPATH:$TEST_HOME/binaryHandle/poi3.8/poi-scratchpad-3.8-20120326.jar
export bCLASSPATH
bCLASSPATH=$bCLASSPATH:$TEST_HOME/binaryHandle/poi3.8/mail-1.4.jar
export bCLASSPATH
bCLASSPATH=$bCLASSPATH:$TEST_HOME/binaryHandle/poi3.8/icp_jdk.jar
export bCLASSPATH
bCLASSPATH=$bCLASSPATH:$TEST_HOME/binaryHandle/mysql-connector-java-5.1.7-bin.jar
export bCLASSPATH
bCLASSPATH=$bCLASSPATH:$TEST_HOME/binaryHandle/poi3.8/commons-logging.jar
export bCLASSPATH
bCLASSPATH=$bCLASSPATH:$TEST_HOME/binaryHandle/poi3.8/commons-net-3.4.jar
export bCLASSPATH
bCLASSPATH=$bCLASSPATH:$TEST_HOME/binaryHandle/poi3.8/httpclient-4.3.1.jar
export bCLASSPATH
bCLASSPATH=$bCLASSPATH:$TEST_HOME/binaryHandle/poi3.8/httpclient-cache-4.1.1.jar
export bCLASSPATH
bCLASSPATH=$bCLASSPATH:$TEST_HOME/binaryHandle/poi3.8/httpcore-4.3.jar
export bCLASSPATH
bCLASSPATH=$bCLASSPATH:$TEST_HOME/binaryHandle/poi3.8/httpmime-4.1.1jar
export bCLASSPATH
bCLASSPATH=$bCLASSPATH:$TEST_HOME/binaryHandle/poi3.8/json_simple-1.1.jar
export bCLASSPATH

MAIN_CLASS=isBinaryFileUI.CommandNoErgodicMain
export MAIN_CLASS
echo $bCLASSPATH
java -Xms512m -Xmx1024m -classpath "$bCLASSPATH" -Darg1="$1" -Darg2="$2" -Darg3="$3" -Darg4="$4" -Darg5="$5" -Darg6="$6" -Darg7="$7" -Darg8="$8" -Darg9="$9" -Darg10="$10" -Darg11="$11" -Dfile.encoding="UTF-8" -Dbinaryfile.home="$TEST_HOME/binaryHandle" $MAIN_CLASS